<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>ImageFormat</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">ImageFormat()</font></b></p>
<p><b>语法</b></p><blockquote>

Result = <font color="#006666"><b>ImageFormat</b></font>(#Image)</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Return the original image format. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Image</i></td>
<td width="90%"> 
 
The image to use. 

 

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>



Returns the image original format. It can be one of the following value: 
 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_ImagePlugin_JPEG</font>
  <font color="#924B72">#PB_ImagePlugin_JPEG2000</font>
  <font color="#924B72">#PB_ImagePlugin_PNG</font>
  <font color="#924B72">#PB_ImagePlugin_TGA</font>
  <font color="#924B72">#PB_ImagePlugin_TIFF</font>
  <font color="#924B72">#PB_ImagePlugin_BMP</font>
  <font color="#924B72">#PB_ImagePlugin_ICON</font>
</font></pre>

If the image was not loaded from one of this format, it will return zero. This is the case for images created with 
<a href="createimage.html">CreateImage()</a> or <a href="grabimage.html">GrabImage()</a>. 

 

</blockquote><p><b>参阅</b></p><blockquote>

<a href="loadimage.html">LoadImage()</a>, <a href="createimage.html">CreateImage()</a>, <a href="catchimage.html">CatchImage()</a>, <a href="grabimage.html">GrabImage()</a>, 
<a href="../imageplugin/index.html">ImagePlugin library</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=imagedepth.html>ImageDepth()</a> - <a href=index.html>Image Index</a> - <a href=imageheight.html>ImageHeight()</a> -&gt;



</body></html>